package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

/**
 * @author Xiao
 * @date 2021/9/12
 */
@Configuration  //说明这是一个配置类
@ComponentScan({"com.itheima.service", "com.itheima.dao"})  //设定扫描路径
@PropertySource(value = "classpath:jdbc.properties", encoding = "UTF-8")    //加载文件
@Import({JdbcConfig.class, MybatisConfig.class})   //导入第三方配置类
public class SpringConfig {
}
